﻿using System.ComponentModel;
using System.Data;
using FluorineFx;

namespace ServiceLib
{
    [RemotingService]
    [Description("Test Service")]
    public class TestLib
    {
        [DataTableType("SliverlightApp.Person")]
        public DataTable GetPersonList()
        {
            DataTable tbl = new DataTable();
            tbl.Columns.Add("Name", typeof(string));
            tbl.Columns.Add("Age", typeof(System.Int32));
            tbl.Rows.Add("菩提树下的杨过", 30);
            tbl.Rows.Add("小龙女", 100);
            return tbl;
        }


        
        public string HelloWorld(string p)
        {
            return "hello , " + p + " , welcome to FluroineFx !";
        }
    }
}
